package libregnummap;
import java.awt.Color;
/*
 * Rectangle.java
 *
 * Created on March 4, 2009, 5:32 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */


public class Rectangle extends PrintableObject {
    
    private int x, y, width, height;
    private float alpha;
    
    /** Creates a new instance of Oval */
    Rectangle(int x, int y, int width, int height) {
        this.x = x;
        this.y = y;
        this.width = width;
        this.height = height;
    }

    public float getAlpha() {
        return alpha;
    }

    public int getHeight() {
        return height;
    }

    public int getWidth() {
        return width;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

    public void setAlpha(float alpha) {
        this.alpha = alpha;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public void setX(int x) {
        this.x = x;
    }

    public void setY(int y) {
        this.y = y;
    }
    
    Rectangle(int x, int y, int width, int height, Color c, boolean filled, float alpha, String type){
        this.x = x;
        this.y = y;
        this.width = width;
        this.height = height;
        this.alpha = alpha;
        
        setType(type);
        setFilled(filled);
        setColor(c);
    }
}